package com.mew.common.entity.config;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@TableName("c_fishing_fish")
@Data
@ToString
@NoArgsConstructor
public class FishingFish {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Integer id;

    @TableField("name")
    private String name;

    /**
     * 击杀率
     */
    @TableField("kill_rate")
    private Double killRate;
    /**
     * 分值
     */
    @TableField("score")
    private Integer score;

    @TableField("state")
    private Integer state;

    public boolean kill(){

        return Math.random()<(this.killRate);
    }


}
